#!groovy

@Library('jenkinslib@master') _

def nexus3 = new org.devops.nexus()
def nexusapi = new org.devops.nexusapi()


String updateType = "${env.updateType}"
String artifactUrl = "${env.artifactUrl}"
String pkgVersion = "${env.pkgVersion}"


pipeline{
	agent {node {label "master"}}

	stages{
		stage("UpdateArtifact") {
			steps{
				script{
					//nexus3.ArtifactUpdate(updateType,artifactUrl)

					//nexusapi.GetRepoComponents("maven-hostd")
					nexusapi.GetSingleComponents("maven-hostd","com.mycompany.app","my-app",pkgVersion)
				}
			}
		}
	}
} 